//
//  NoteViewController.h
//  Digital Seamonsters
//
//  Created by Adam Cue on 2/3/11.
//  Copyright Adam Cue 2011.
//
//  This program is licensed and distributed under the terms of the GNU General Public License.  
//	The text for the license can be found in the license.txt file in this project.
//

#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>

@protocol NoteViewControllerDelegate
- (void)noteDismissed:(NSString *)selectedText;
- (void)noteEmailed:(NSString *)selectedText;
- (void)noteTrashed;
@end


@interface NoteViewController : UIViewController <UIActionSheetDelegate>{
   NSString * _initialText;
	UITextView * _textView;
	UIBarButtonItem * _trashButton;
	UIBarButtonItem * _actionButton;
	id <NoteViewControllerDelegate> delegate;
	BOOL deleted;
}

#pragma mark ExternalMethods
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil text:(NSString *)selectedText;

@property(nonatomic, retain) NSString * initialText;
@property(nonatomic, retain) UITextView * textView;
@property(nonatomic, retain) UIBarButtonItem * trashButton;
@property(nonatomic, retain) UIBarButtonItem * actionButton;
@property(nonatomic, assign) id <NoteViewControllerDelegate> delegate;

@end
